from fastapi import APIRouter, Body, HTTPException
import sys
from .config import is_dev_mode
from backend.logger import log  # 导入日志组件
# 导入用户领域路由
from backend.api.user import router as user_router
from backend.api.systeminfo import router as systeminfo_router
# 导入标准化响应
from backend.core.response import success_response, error_response

api_router = APIRouter()

api_router.include_router(user_router, prefix="/users", tags=["users"])
# 注册用户领域路由
api_router.include_router(systeminfo_router, prefix="/systeminfo", tags=["systeminfo_router"])

